const mongoose = require('mongoose');
const schema = mongoose.Schema({
  username: { type: String, required: true, unique: true },
  name: String,
  sex: { type: Number, default: 0 },
  password: { type: String, require: true },
  phone: String
});
module.exports = mongoose.model('User', schema);